package com.beyond.trace.dy.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品管理对象 t_trace_dy_product
 * 
 * @author Mr.Yao
 * @date 2022-04-08
 */
@TableName("t_trace_dy_product")
public class TraceDyProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "product_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    @ApiModelProperty(value = "产品名称")
    private String productName;

    /** 产品品种 */
    @Excel(name = "产品品种")
    @ApiModelProperty(value = "产品品种")
    private String productBreed;

    /** 产品养殖户 */
    @Excel(name = "产品养殖户")
    @ApiModelProperty(value = "产品养殖户")
    private String productFarmers;

    /** 产品生长时间 */
    @Excel(name = "产品生长时间")
    @ApiModelProperty(value = "产品生长时间")
    private String productGrowtime;

    /** 产品图片 */
    @Excel(name = "产品图片")
    @ApiModelProperty(value = "产品图片")
    private String productPic;

    /** 是否删除，1，是 0，否 */
    @Excel(name = "是否删除，1，是 0，否")
    @ApiModelProperty(value = "是否删除，1，是 0，否")
    private Long deleteFlag;

    /** 删除人 */
    @Excel(name = "删除人")
    @ApiModelProperty(value = "删除人")
    private String deleteBy;

    /** 删除日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "删除日期")
    private Date deleteTime;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductBreed(String productBreed) 
    {
        this.productBreed = productBreed;
    }

    public String getProductBreed() 
    {
        return productBreed;
    }
    public void setProductFarmers(String productFarmers) 
    {
        this.productFarmers = productFarmers;
    }

    public String getProductFarmers() 
    {
        return productFarmers;
    }
    public void setProductGrowtime(String productGrowtime) 
    {
        this.productGrowtime = productGrowtime;
    }

    public String getProductGrowtime() 
    {
        return productGrowtime;
    }
    public void setProductPic(String productPic) 
    {
        this.productPic = productPic;
    }

    public String getProductPic() 
    {
        return productPic;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productBreed", getProductBreed())
            .append("productFarmers", getProductFarmers())
            .append("productGrowtime", getProductGrowtime())
            .append("productPic", getProductPic())
            .append("deleteFlag", getDeleteFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("remark", getRemark())
            .toString();
    }
}
